package com.ylr.blog.framework.mapper;

import com.ylr.blog.framework.entity.BlogEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * Created by IntelliJ IDEA.
 *
 * @author wyw
 * date: 2023-05-18 21:39:06
 * className: BlogMapper
 * version: 1.0
 * description:
 */
public interface BlogMapper extends BaseMapper<BlogEntity> {

    /**
     * 统计博客空间关联的博客数量
     * @param userId       用户主键
     * @param spaceId      空间主键
     * @param deleteStatus 删除状态
     * @return 博客数量
     */
    Integer selectBlogNum(@Param("userId") Long userId, @Param("spaceId") Long spaceId, @Param("deleteStatus") Integer deleteStatus);
}
